import { IsNotEmpty, IsString,Length,Matches } from "class-validator"

export class WebClassifyDto {
    @IsString(
        {
            message: "标题不能为空"
        }
    )
    @IsNotEmpty()
    @Length(1,30)
    title:string;
}